package Pages;
/*
 *  J2Egn version 2.6.28
 *  Author: Van Tan Tai 2010-2011
 *  State manager - Enter here :)
 */
import javax.microedition.lcdui.Graphics;

import Core.GLives;
import Core.Slide;

/** DO NOT REMOVE OR BREAK THE STRUCT OF this template file */

public class State {
	
	public static final short LOADING = -1;
	public static final short SPLASH_SCREEN = 0;
	public static final short ENABLE_SOUND = 1;
	public static final short MAIN_MENU = 2;
	public static final short INBODY_MENU = 3;
	public static final short BODY = 4;
	public static final short THEEND = 12;
	public static final short BODY_NEW = 5;
	public static final short BODY_CONTINUE = 6;
	public static final short OPTION = 7;
	public static final short HIGHSCORE = 8;
	public static final short IGP = 9;
	public static final short HELP = 10;
	public static final short EXIT = 11;
	
	public static final short TEST = 13;
	
	// start App
	public static final short THE_FISRT_SCREEN_PAGE_OF_APP = TEST;
	
	public static Slide Loading(short state){
		switch(state){
//		case State.SPLASH_SCREEN:	return new SplashScreen();
//		case State.ENABLE_SOUND:	return new EnableSound();
//		case State.MAIN_MENU:		return new MainMenu();
//		case State.INBODY_MENU:		return new InMenu();
//		case State.BODY_NEW:		// body
//		case State.BODY_CONTINUE:	// body
//		case State.BODY:			return new Game(state);
//		case State.THEEND:			return new EndGame();
//		case State.HIGHSCORE:	return new HighScore();
//		case State.HELP:		return new Help();
//		case State.IGP:			return new IGP();
//		case State.EXIT:		// null
//		case State.OPTION:		// null
		
		case State.TEST:	return new Test();
		}
		return null;
	}
	
	/** Draw Debug game. Plz: Rem all content on release build */
	public static void draw_DEBUG_Info(Graphics g){
//		Touch.drawMe(g);
//		g.setColor(0x11FF11);
//		g.drawRect(GLives.ins.currSlide.inX, GLives.ins.currSlide.inY, GLives.ins.currSlide.inW-1, GLives.ins.currSlide.inH-1);
//		g.setColor(0xFF0000);
//		g.drawString("W="+GLives.ScreenWidth + " H="+GLives.ScreenHeight, 10, 10, 0);
//		g.drawString(" Ascii: "+ KEY.LastKey, 10, 20, 0); //" Seri:" + GLives.vendorSeries + " Device:" + GLives.vendorDevice + 
	}
}
